package principle.adapter;

/**
 * @author malguy-wang sir
 * @create ---
 */
public class voltageAdapter implements voltage5{
    private voltage220 voltage220;//继承改为聚合
    public voltageAdapter(principle.adapter.voltage220 voltage220) {
        this.voltage220 = voltage220;
    }
    @Override
    public int output5() {
        int dstV = 0;
        if(voltage220!=null){
            int srcV= voltage220.output220();
            dstV = srcV / 44;
        }
        return dstV;
    }
}
